treeMenuInit=null;

$(function () {

    var initTreeUrl = base+"/getMenu";
    if(treeMenuInit!=null){
    	console.log("The treeMenu exist,not init any more~");
    	return;
    }
    //实例化树形菜单    
    var treeMenu=$("#tree");
    treeMenu.tree({
    	url:initTreeUrl,
        lines : true,
        onClick : function (node) {
            if (node.url) {
            	newTab(node.name,node.url);
            }
        }
    });
    treeMenuInit=true;
    console.log("The treeMenuInit end~");
});